﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Negocio
{
    //extiende Appointment
    public class EvaluationAppointment: Appointment
    {
        private Evaluation evaluationToExecute;

        public EvaluationAppointment():base()
        {
            this.EvaluationToExecute = new Evaluation();
        }
        
        public Evaluation EvaluationToExecute 
        {
            get { return this.evaluationToExecute;}
            set { this.evaluationToExecute = value;}
        }

        public override bool Equals(object obj)
        {
            EvaluationAppointment agenda = (EvaluationAppointment)obj;
            return this.Date.Equals(agenda.Date) && this.EvaluationToExecute.Equals(agenda.EvaluationToExecute);
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
